package com.vast.admin.entity.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;

/**
 * 查询操作符
 */
public enum OperatorEum  implements IEnum<Integer> {
    EQ(1, "等于"),
    LIKE(2, "模糊查询:'%王%'"),
    LIKELEFT(3, "左模糊查询:'%王'"),
    LIKERIGHT(4, "右模糊查询:'王%'"),
    GE(5, "大于等于"),
    LE(6, "小于等于"),
    BE(7, "在之间"),
    NE(8, "不等于"),
    GT(9, "大于"),
    LT(10, "小于");

    private int type;
    private String note;

    OperatorEum(int type, String note) {
        this.type = type;
        this.note = note;
    }

    @Override
    public Integer getValue() {
        return this.type;
    }

}
